import service from '@/utils/request'

// @Tags FirstOrderProcessingHistory
// @Summary 创建首办单-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingHistory true "创建首办单-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /firstOrderProcessingHistory/createFirstOrderProcessingHistory [post]
export const createFirstOrderProcessingHistory = (data) => {
  return service({
    url: '/firstOrderProcessingHistory/createFirstOrderProcessingHistory',
    method: 'post',
    data
  })
}

// @Tags FirstOrderProcessingHistory
// @Summary 删除首办单-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingHistory true "删除首办单-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /firstOrderProcessingHistory/deleteFirstOrderProcessingHistory [delete]
export const deleteFirstOrderProcessingHistory = (params) => {
  return service({
    url: '/firstOrderProcessingHistory/deleteFirstOrderProcessingHistory',
    method: 'delete',
    params
  })
}

// @Tags FirstOrderProcessingHistory
// @Summary 批量删除首办单-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除首办单-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /firstOrderProcessingHistory/deleteFirstOrderProcessingHistory [delete]
export const deleteFirstOrderProcessingHistoryByIds = (params) => {
  return service({
    url: '/firstOrderProcessingHistory/deleteFirstOrderProcessingHistoryByIds',
    method: 'delete',
    params
  })
}

// @Tags FirstOrderProcessingHistory
// @Summary 更新首办单-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingHistory true "更新首办单-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /firstOrderProcessingHistory/updateFirstOrderProcessingHistory [put]
export const updateFirstOrderProcessingHistory = (data) => {
  return service({
    url: '/firstOrderProcessingHistory/updateFirstOrderProcessingHistory',
    method: 'put',
    data
  })
}

// @Tags FirstOrderProcessingHistory
// @Summary 用id查询首办单-历史快照
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FirstOrderProcessingHistory true "用id查询首办单-历史快照"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /firstOrderProcessingHistory/findFirstOrderProcessingHistory [get]
export const findFirstOrderProcessingHistory = (params) => {
  return service({
    url: '/firstOrderProcessingHistory/findFirstOrderProcessingHistory',
    method: 'get',
    params
  })
}

// @Tags FirstOrderProcessingHistory
// @Summary 分页获取首办单-历史快照列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取首办单-历史快照列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /firstOrderProcessingHistory/getFirstOrderProcessingHistoryList [get]
export const getFirstOrderProcessingHistoryList = (params) => {
  return service({
    url: '/firstOrderProcessingHistory/getFirstOrderProcessingHistoryList',
    method: 'get',
    params
  })
}
